package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.ApiGroupBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class ApiGroupCreateDTO {

    private String parentUkId;
    private String name;
    private Integer sort;

    public ApiGroupBO toApiGroupBO() {
        ApiGroupBO apiGroupBO = new ApiGroupBO();
        BeanUtils.copyProperties(this, apiGroupBO);
        return apiGroupBO;
    }
}